<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>霜之哀伤</title>
    <link rel="stylesheet" type="text/css" href="/static/writer/css/index-2017051107-f.css">
    <link rel="stylesheet" type="text/css" href="/static/writer/css/UBXCMkzNVlaZYNs-f.css">
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <script src="/static/layui/layui.js"></script>


    <style>
        .content {
            font-size: 20px;
        }

        .content-zuopin {
            width: 1600px;
            height: 1600px;
            /* border: 1px solid red; */

        }

        .content-all {
            width: 1020px;
            height: 1200px;
            /* border: 1px solid red; */
            margin: 100px 325px;
        }

        .inputys {

            border: 1px solid rgb(111, 111, 111);

        }

        .zuopin {
            padding: 20px 200px;
        }

        .zhengwen {
            margin: 0px 70px;

        }

        .zpzw {
            margin: 0px 5px;
        }

        .zuopzj {
            margin: 0px -197px;
        }

        .zpfl {
            margin: 0px 35px;
        }

        .fm-all {
            width: 400px;
            height: 250px;
            /* border: 1px solid red; */
            margin: 25px 270px;
        }

        .fm {
            width: 200px;
            height: 200px;
            border: 1px solid rgb(111, 111, 111);
        }

        .error {
            color: red;
        }
        .shum{
            font-size: 25px;
            margin: 75px 60px;
        }
        .zhangjie{
            border: 1px solid rgb(111, 111, 111);
        }
        .tijiao{
            background-color: rgb(249,147,43);
            color:black ;
            width:100px;
            height:50px;
        }
        .name{
           color: #0C82D9;
        }
    </style>
</head>

<body>

<div id="root">
    <div data-reactroot="" class="framePage">
        <div class="content-wrap">

            <!-- 头部 -->
            <header class="topbar"><h1 class="topbar-logo"><img src=""></h1><!-- react-empty: 118 -->
                <div class="topbar-right">
                    <ul class="top-nav clearfix">
                        <li class="topbar-sp-width">
                            <div class="fontsize14"><a href="{:url('index/writerpersonal')}">{$penname}</a></div>
                        </li>
                        <li class="user">
                            <div><a href=""><img class="frame-message-img"
                                                 src=""></a>
                            </div>
                        </li>
                        <li class="logout"><a href="{:url('index/writerout')}"><img class="frame-logout-img"
                                                                                    src=""></a>
                        </li>
                    </ul>
                </div>
            </header>


            <!-- 左导航栏 -->
            <div class="sidebar">
                <ul class="nav">

                    <li class="nav-tab" data-url="#/"><h3 class="active"><i class="anticon anticon-shortlong"></i>
                        作品管理</h3>
                        <ul class="two-nav" style="display: block;">
                            <li><a class="sidebarItems colorWhite" href="{:url('index/writerpersonal')}">
                                <div class="sidebarItems-text">作品列表</div>
                            </a></li>
                            <li><a class="sidebarItems colorWhite" href="{:url('writerfound')}">
                                <div class="sidebarItems-text">创建新书</div>
                            </a></li>
                            <li><a class="sidebarItems" href="{:url('index/authormoney')}">
                                <div class="sidebarItems-text">作者资产</div>
                            </a></li>
                        </ul>
                    </li>
                    <li class="nav-tab"><a class="" href="{:url('index/writerinfo')}"><h3><i class="anticon anticon-user"></i>
                        作者信息</h3></a></li>
                    <li class="nav-tab"><a class="" href="{:url('index/writerdata')}"><h3><i class="anticon anticon-tablet"></i>
                        作品数据</h3></a></li>
                    <li class="nav-tab"><a href="{:url('index/writernwes')}"><h3><i class="anticon anticon-short"></i>消息管理
                    </h3></a>

                    <li class="nav-tab"><a class="" href="{:url('index/writercheckout')}"><h3><i class="anticon anticon-money"></i>
                        结算中心</h3></a></li>
                </ul>
            </div>
            <div class="content-page">
                <div class="createbookPage">


                    <!--{block name="kth"}-->
                    <!-- 可替换主题部分 -->
                    <form action="{:url('index/writeraddyz',['name'=>$name])}" method="post">
                    <ul>
                        <li class="shum">
                            书名: <input type="text" value="{$name}" class="name" name="penname">
                        </li>
                        <li class="shum">
                            已有章节: 第<input type="text" value="{$num}" class="name" name="tnum" style="width: 60px;text-align: center" readonly>章 (<input type="text" value="{$title}" name="title" readonly style="color: #0C82D9;text-align: center">)
                        </li>
                        <li class="shum">
                            新增章节名: <input type="text" class="zhangjie" name="newtitle">
                        </li>
                        <li >
                            正文:<textarea id="demo" name="content" style="display: none;"></textarea>
                        </li>
                        <li>
                            <button type="submit" class = "shum tijiao">确定</button>
                        </li>
                    </ul>
                    </form>
                    <!--可替换结束-->
                    <!--{/block}-->


                </div>
            </div>
        </div>
    </div>
</div>
<script src="/static/writer/js/jquery-1.8.3.min.js"></script>
<script>

    layui.use('layedit', function(){
        var layedit = layui.layedit;
        //上传图片接口：注意：layedit.set 一定要放在 build前面，否则配置全局接口将无效
        layedit.set({
            uploadImage: {
                url: '/admin/Article/lay_img_upload', //接口url
                type: 'post', //默认post
            }
        });
        //创建编辑器
        layedit.build('demo'),{
            width:600,
            height: 800 //设置编辑器高度
        }; //建立编辑器

    });
</script>

</body>
</html>